﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace FootBallMatchProject.Administrator_WebSite
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //lbUserName.Text = Session["UserName"].ToString();
            lbTimeUTC.Text = DateTime.UtcNow.ToLocalTime().ToShortTimeString();
        }

        protected void lnkLogout_Click(object sender, EventArgs e)
        {
            Session.Abandon();
            FormsAuthentication.SignOut();
            FormsAuthentication.RedirectToLoginPage();
           Response.Redirect("loginPage.aspx");
        }
    }
}